package com.petshop.utils;

import com.petshop.dto.UserDTO;

public class RedisConstant {

    //验证码前缀的常量值
    public static final String LOGIN_CODE_KEY = "login:code:";
    //验证码有效时间
    public static final Long LOGIN_CODE_TTL = 5L;
    //token的前缀
    public static final String LOGIN_USER_KEY = "user:login:token:";
    public static final String LOGIN_ADMIN_KEY = "admin:login:token:";
    //token有效时间
    public static final Long LOGIN_USER_TTL = 30L;
    public static final Long LOGIN_ADMIN_TTL = 30L;

    //
    public static final Long CACHE_NULL_TTL = 30L;
    public static final String CACHE_PET_KEY = "cache:pet:";
    public static final String CACHE_PET_LOCK_KEY = "cache:pet:lock:";
    public static final Long CACHE_PET_TTL = 30L;
    public static final String CACHE_ORDER_KEY = "cache:order:";
    public static final String SECKILL_STOCK_KEY = "secKill:stock:";
    public static final String USER_SIGN_KEY = "sign:";
    //存储用户信息的ThreadLocal
//    public static final ThreadLocal<UserDTO> userthreadLocal = new ThreadLocal<>();
}

